var currentPage=1;
	 var goodsnames = getvl1("goodsnames");
	 
	 alert(goodsnames);
/*	 
	selectjingr();
$(function(){

       
	
});
	*/
	
function selectjingr(){
		$("#shangpingids").html("");
	    $.ajax({
        url:urlcore+"/api/goods/search?current="+currentPage+"&goodsname="+goodsname,
			type: "get",
			dataType: 'json',
			contentType: "application/json;charset=utf-8",
			success: function(data) {
				if(data.success == true) {
					var i=0;
					  $.each(data.data.list,function(y,n){
					  	i++;
					  	if(i==1){
					  		$("#shijian").val(n.rush_time);
					  	}
					  	var shangpingids='<dl class="clearfix">'+
'        		<a href="4.0.1xianshiqianggou_detail.html">'+
'	        		<dt>'+
'	        			<img onerror="errorImg(this)" src="'+n.cover_url+'" />'+
'	        		</dt>'+
'	        		<dd>'+
'	        			<h5>'+n.goods_title+'</h5>'+
'	        			<span>'+n.trade_number+'件起批</span>'+
'	        			<span>已售出'+n.sale_num+'件</span>'+
'	        			<div class="progress">'+
'							<div class="progress-bar" style="width: 85%; ">'+
'								'+
'							</div>'+
'							<div class="progress-value">'+n.sale_num+'/'+n.rush_amount+'</div>'+
'						</div>'+
'						<div class="jg_price">'+
'							<h6>&nbsp;'+n.cheap_price+'<span>原价:'+n.trade_price+'</span></h6>'+
'							<em>立即抢购</em>'+
'						</div>'+
'	        		</dd>'+
'        		</a>'+
'        	</dl>';
					  	$("#shangpingids").append(shangpingids);
					  });
					 }
			},
			error: function() {
				alert("error");
			}
		});

	
}

